using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.Design;

namespace BbqFramework.Web.UI.Controls
{
    public class CoolBoxDesigner : ControlDesigner
    {
        /// <summary>
        /// Retrieves the HTML markup that is used to represent the control at design time.
        /// </summary>
        /// <returns>
        /// The HTML markup used to represent the control at design time.
        /// </returns>
        public override string GetDesignTimeHtml()
        {
            return "<div style='border: solid 1px blue; width: 50px; height: 18px; padding: 1px 1px 1px 1px'>CoolBox</div>";
        }

        /// <summary>
        /// Gets a value indicating whether the control can be resized in the design-time environment.
        /// </summary>
        /// <value></value>
        /// <returns>true, if the control can be resized; otherwise, false.</returns>
        public override bool AllowResize
        {
            get
            {
                return false;
            }
        }
    }
}
